// 采购销售接口
import request from "../http.js"

const api = {
	'list': '/production/work/listNotFinishMain2', // 获取加工单
	'listDetail': '/erp/processRoute/getList', // 获取加工明细
	'getDetailList': '/erp/processRoute/getDetailList', //获取工艺明细
	'batchReportBarcode': '/erp/barcode/processReport/batchSaveCardDetail', // 扫码提交
	'workpage': '/erp/workProcedureCardDetail/page',	//工序汇报列表
}

// 工序汇报列表 
export function workpage(data) {
	return request({
		url: api.workpage,
		method: 'POST',
		contentType: 'application/json',
		data: data
	})
}


// 扫码提交 
export function batchReportBarcode(data) {
	return request({
		url: api.batchReportBarcode,
		method: 'POST',
		contentType: 'application/json',
		data: data
	})
}

// 获取加工明细 
export function getDetailList(data) {
	return request({
		url: api.getDetailList,
		method: 'GET',
		contentType: 'application/json',
		data: data
	})
}

// 获取加工明细 
export function listDetail(data) {
	return request({
		url: api.listDetail,
		method: 'GET',
		contentType: 'application/json',
		data: data
	})
}

// 获取加工单 
export function list(data) {
	return request({
		url: api.list,
		method: 'GET',
		contentType: 'application/json',
		data: data
	})
}

